package com.ry.bhwktapp.home.ui

import android.annotation.SuppressLint

// TODO kotlin语言中mutator函数的使用
//+= 和-=的使用
//removeIf的使用
@SuppressLint("NewApi")
fun main() {

    val mutableListOf = mutableListOf<String>("DeeHHH", "DeeKKK", "DeeOOO", "小花猫", "小柴鸡")
    mutableListOf+="小花狗"
    mutableListOf+="小黑驴"
    mutableListOf -="DeeOOO"
    println(mutableListOf)
    //满足条件删除 定向删除某些元素
    mutableListOf.removeIf {it.contains("Dee") }
    println(mutableListOf)

}